Pod::Spec.new do |s|
  s.name     = 'UIComponent'
  s.version  = '1.0'
  s.summary  = 'lienbao iOS Framework: UIComponent'
  s.authors  = { 'lienbao' => 'lienbaoleb@163.com' }
  s.source   = { :git => 'https://git.oschina.net/lienbao/UIComponent.git' }
  s.requires_arc = true
  s.ios.deployment_target = '7.0'
  s.platform     = :ios, '7.0'
  s.ios.vendored_library = 'UIComponent/Vender/UMAnalytics/libMobClickLibrary.a'
  s.source_files = 'UIComponent/*.{h,m}'
  s.resource = 'UIComponent/UIComponent.bundle'
  s.xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }
  
  s.dependency 'NJKWebViewProgress', '~> 0.2.3'
  s.dependency 'CHTCollectionViewWaterfallLayout', '~> 0.8'
  s.dependency 'SVProgressHUD', '~> 1.0'
  s.dependency 'MJRefresh'
  s.dependency 'UMengAnalytics'
  
  s.subspec 'Category' do |ss|
    ss.source_files = 'UIComponent/Category/*.{h,m}'
    ss.frameworks = 'SystemConfiguration'
  end

  s.subspec 'Controllers' do |ss|
    ss.source_files = 'UIComponent/Controllers/*.{h,m}'
  end
  
  s.subspec 'CoreData' do |ss|
    ss.source_files = 'UIComponent/CoreData/*.{h,m}'
  end
  
  s.subspec 'Location' do |ss|
    ss.source_files = 'UIComponent/Location/*.{h,m}'
  end
   
  s.subspec 'MCLogger' do |ss|
    ss.source_files = 'UIComponent/MCLogger/*.{h,m}'
  end
  
  s.subspec 'UIUtil' do |ss|
    ss.source_files = 'UIComponent/UIUtil/*.{h,m}'
  end
  
  s.subspec 'Views' do |ss|
    ss.source_files = 'UIComponent/Views/*.{h,m}'
  end
  
  s.subspec 'Waterfall' do |ss|
    ss.source_files = 'UIComponent/Waterfall/*.{h,m}'
  end
  	
  s.subspec 'Vender' do |ss|
    
    s.subspec 'AMScrollingNavbar' do |ss|
    	ss.source_files = 'UIComponent/Vender/AMScrollingNavbar/*.{h,m}'
  	end

  	s.subspec 'ChineseToPinyin' do |ss|
    	ss.source_files = 'UIComponent/Vender/ChineseToPinyin/*.{h,m}'
    	ss.frameworks = 'Security'
  	end
  	
  	s.subspec 'CYAlertView' do |ss|
    	ss.source_files = 'UIComponent/Vender/CYAlertView/*.{h,m}'
  	end
  	
  	s.subspec 'MLBlackTransition' do |ss|
    	ss.source_files = 'UIComponent/Vender/MLBlackTransition/*.{h,m}'
  	end
  	
  	s.subspec 'NavigationMenuView' do |ss|
    	ss.source_files = 'UIComponent/Vender/NavigationMenuView/*.{h,m}'
  	end
  	
  	s.subspec 'NSDate+Helper' do |ss|
    	ss.source_files = 'UIComponent/Vender/NSDate+Helper/*.{h,m}'
  	end
  	
  	s.subspec 'OBGradientView' do |ss|
    	ss.source_files = 'UIComponent/Vender/OBGradientView/*.{h,m}'
  	end
  	
  	s.subspec 'RFSegmentView' do |ss|
    	ss.source_files = 'UIComponent/Vender/RFSegmentView/*.{h,m}'
  	end
  	
  	s.subspec 'UIActionSheetBlock' do |ss|
    	ss.source_files = 'UIComponent/Vender/UIActionSheetBlock/*.{h,m}'
  	end
  	
  	s.subspec 'UIImage+Additions' do |ss|
    	ss.source_files = 'UIComponent/Vender/UIImage+Additions/*.{h,m}'
  	end
  	
  	s.subspec 'UMAnalytics' do |ss|
    	ss.source_files = 'UIComponent/Vender/UMAnalytics/*.{h,m}'
  	end
    
  end
 
end
